<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<style>
@keyframes cir4 {
  0% {
    transform: rotateY(-180deg) rotateZ(10deg);
  }
  100% {
    transform: rotateY(-540deg) rotateZ(10deg);
  }
}
.u_p3d{
    -webkit-transform-style: preserve-3d !important;
    transform-style: preserve-3d !important;
}

.ui_base {
    position: relative;
    width: 400px;
    height: 0px;
    margin:80px auto;
    -webkit-perspective: 1000px;
    -webkit-perspective-origin: 50% 0%;
    perspective: 1000px;
    perspective-origin: 50% 0%;
}
.base{
	-webkit-transform: rotateX(80deg) rotateY(-10deg);
    transform: rotateX(80deg) rotateY(-10deg);
    position: relative;
    width: 350px;
    height: 350px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    animation: cir 10s linear 0s infinite;
}
.ball_base {
    -webkit-transform-origin: 225px 0px;
    transform-origin: 225px 0px;
    position: absolute;
    top: 175px;
    left: -50px;
    width: 225px;
    height: 127px;
}
.moon {
	width: 9.8125rem;
	height: auto;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    position: absolute;
    width: 157px;
    height: 157px;
    line-height: 157px;
    text-align: center;
    background-image: url(img/moon.svg);
    left: 90px;
    top: 50px;
    color: #fff;
    font-size: 24px;
}

.pan {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    -webkit-animation: cir_p 5s linear 0s infinite;
	animation: cir_p 5s linear 0s infinite;
}
.earth .ball {
	-webkit-animation: cir4 10s linear 0s infinite;
	animation: cir4 10s linear 0s infinite;
	-webkit-transition-delay: 500ms !important;
	transition-delay: 500ms !important;
}
.earth {
	width:14.0625rem;
	height: auto;
    -webkit-transform: rotateX(-90deg) rotateY(180deg) translateY(-70px);
    transform: rotateX(-90deg) rotateY(180deg) translateY(-70px);
}
		</style>
	
	</head>
	<body>
		<div class="ui_base u_p3d">
			<div class="moon">
			<img src="/img/moon.svg" alt="moon"/>
			</div>
			
			<div class="base u_p3d">
				 <div class="pan"></div>
		<div class="earth">
	<div class="ball"><img src="/img/earth.svg" alt="earth"/>
	</div>
	</div></div>
	
	 </div>
	</body>
</html>
